package cn.linjianhui.interview.patterns.singleton;

// 饿汉模式，在ClassLoader完成后，实例已经存在JVM了
public class HungrySingleton {
    private static HungrySingleton instance = new HungrySingleton();
    private HungrySingleton() {}
    public static HungrySingleton getInstance() {
        return instance;
    }
}
